//
//  BaseViewModel.m
//  iosFramework
//
//  Created by Farben on 2020/8/5.
//  Copyright © 2020 Farben. All rights reserved.
//

#import "BaseViewModel.h"
#import <AFNetworking/AFNetworking.h>

@implementation BaseViewModel

-(void)getNetWorkWithParameter:(NSDictionary*)param withreturnBlock:(void (^)(id obj))aBlock{
    
    
    [ZJNetworking postWithUrl:[[ZJNetWorkURLTool Share] getMainURL] params:@{} success:^(id response) {
        NSLog(@"success -- %@",response);
        aBlock(@"请求获取成功 ! ");
    } fail:^(NSError *error) {
        NSLog(@"%@",error);
    }];
    
    
}

@end
